package org.hongmeng.entity;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Future;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Meeting implements Serializable {
    private Long id;

    @NotBlank(message = "会议号不能为空")
    private String meetingNo;

    @NotBlank(message = "会议标题不能为空")
    private String title;

    private String content;

    @NotNull(message = "开始时间不能为空")
    @Future(message = "开始时间必须是将来时间")
    private LocalDateTime startTime;

    @NotNull(message = "结束时间不能为空")
    @Future(message = "结束时间必须是将来时间")
    private LocalDateTime endTime;

    private Long creatorId;

    private Integer status; // 0-未开始 1-进行中 2-已结束

    private Integer participantCount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
} 